
#ifndef _I7816_H_
#define _I7816_H_

#include "i7816_define.h"
#include "i7816_config.h"

void i7816_init(void);

i7816_icc_state_t i7816_check_state(uint8_t id);
int i7816_is_activated(uint8_t id);

i7816_status_t i7816_power_on(uint8_t id);

i7816_status_t i7816_power_off(uint8_t id);

i7816_status_t i7816_exchange_apdu(uint8_t id, const uint8_t* capdu, uint16_t clen , uint8_t* rapdu, uint16_t* rlen);

i7816_status_t i7816_get_atr(uint8_t id, uint8_t *atr, uint8_t* alen);

#endif	//_I7816_H_

